package com.itheima.edu.day21Thread;

public class RunnableDemo {
    public static void main(String[] args) {
        MyRunnable mr = new MyRunnable();
        MyRunnable mr1 = new MyRunnable();

        //创建Thread对象，把MyRunnable作为构造参数传递进去
        Thread th = new Thread(mr);
        Thread th1 = new Thread(mr1);
        //启动线程
        th.start();
        th1.start();
    }
}
